//
//  BCTitleInputCaptchaView.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/10.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCTitleInputCaptchaView.h"

@implementation BCTitleInputCaptchaView

@dynamic delegate;

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setupCaptchaButton];
    }
    return self;
}
- (void)setupCaptchaButton {
    CGSize captchaSize = [BCaptchaButton defaultSize];
    self.captchaButton = [BCaptchaButton new];
    [self addSubview:self.captchaButton];
    [self.captchaButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self).offset(-20.0);
        make.bottom.mas_equalTo(self).offset(-9.0);
        make.size.mas_equalTo(captchaSize);
    }];
    //
    [self.inputTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self).offset(-20.0-captchaSize.width);
    }];
}


- (void)dealloc {
    self.delegate = nil;
}

@end
